package com.implemetsystem.prestacontas.geral.exception;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class ErpExceptionHandlerFactory extends ExceptionHandlerFactory {

	private ExceptionHandlerFactory delegateFactory;

	public ErpExceptionHandlerFactory(ExceptionHandlerFactory delegateFactory) {
		this.delegateFactory = delegateFactory;
	}

	@Override
	public ExceptionHandler getExceptionHandler() {
		return new ErpExceptionHandler(delegateFactory.getExceptionHandler());
	}
}